<h1>Sign up as a new user</h1>
<% @user.password = @user.password_confirmation = nil %>

<%= error_messages_for :user %>
<% form_for :user, :url => users_path do |f| -%>

<p><%= label_tag 'Name' %><br/>
<%= f.text_field :name %></p>

<p><%= label_tag 'login' %><br/>
<%= f.text_field :login %></p>

<p><%= label_tag 'email' %><br/>
<%= f.text_field :email %></p>

<p><%= label_tag 'password' %><br/>
<%= f.password_field :password %></p>

<p><%= label_tag 'password_confirmation', 'Confirm Password' %><br/>
<%= f.password_field :password_confirmation %></p>

<%= f.label :birthdate %><br />
<%= f.date_select :birthdate, :start_year => Time.now.year-100, :end_year => Time.now.year %>

<p><%= submit_tag 'Sign up' %></p>
<% end -%>
